//    Copyright (C) Kherty.  All rights reserved.
using System;
using System.Diagnostics;
using System.Diagnostics.Contracts;

namespace OpenLS.Core
{
    class StandardFormatItem : FormatItem
    {
        public StandardFormatItem(string format)
        {
            Contract.Requires(format != null);
            // Debug.Assert(format.Length > 0);
            this.format = format;
        }
        public string format;
        public override object Format(IFormattable obj)
        {
            return obj.ToString(format, null);
        }
    }
}